
package org.example.Entity;

public class BusinessData {
// 品类，使用String类型来存储品类名称等信息
    private String category;
    // 点击总数，使用int类型统计点击次数
    private long clickCount;
    // 下单总数，使用int类型统计下单次数
    private long orderCount;
    // 支付总数，使用int类型统计支付次数
    private long paymentCount;

   // public BusinessData(String productName, long clickCount, long orderCount, long payCount) {
   // }

    // 生成对应的Getter和Setter方法
    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public long getClickCount() {
        return clickCount;
    }

    public void setClickCount(long clickCount) {
        this.clickCount = clickCount;
    }

    public long getOrderCount() {
        return orderCount;
    }

    public void setOrderCount(long orderCount) {
        this.orderCount = orderCount;
    }

    public long getPaymentCount() {
        return paymentCount;
    }

    public void setPaymentCount(long paymentCount) {
        this.paymentCount = paymentCount;
    }
       public String toString() {
        return "BusinessData{" +
                "品类='" + category + '\'' +
                ", 点击总数=" + clickCount +
                ", 下单总数=" + orderCount +
                ", 支付总数=" + paymentCount +
                '}';
    }
}

